public class Test extends Object{
    static Student stu = new Student();
    public static void main(String[] args)
    {

        Test.stu.exam();

    }
}
    class Student{
        public void exam(){
            System.out.println("考试");
        }
    }
